<div class="comments-main">
<div class="indeximg">
	<img width="100%" src="{{uiObj.activity_main}}" alt="">
</div>
	<div class="newMessage" ng-if="uiObj.new_info!='0'" onclick="window.location.href='#/newsMessage'">
	<a>{{uiObj.new_info}}条新消息</a>
</div>
<ul ng-controller="sqContentlist" sq-dropmoreajax  class="sq-chartlist" ng-if="showlist">
		<li sq-scroll  ng-repeat="ct in data.list"   ng-class="{'istop':ct.topId!=null&&ct.topId!='0'}">
			<span class="floor">{{ct.floor}}楼</span>
			<img ng-if="ct.isAdmin=='0'" ng-src="{{ct.headimgurl==null?uiObj.defaultHeadImg:ct.headimgurl+''}}" class="head"/>
			<img ng-if="ct.isAdmin=='1'" ng-src="{{uiObj.adminHeadImg==null?uiObj.defaultHeadImg:uiObj.adminHeadImg+''}}" class="head"/>
			<div>
				<p ng-if="ct.isAdmin=='0'" class="uname" style="margin-bottom: 5px;">{{ct.nickname}}</p>
				<p ng-if="ct.isAdmin=='1'" class="uname" style="margin-bottom: 5px;">{{uiObj.adminNickName}}</p>
				<div class="contentMain" ng-bind-html="ct.content | to_trusted" style="line-height: 25px;padding-right: 10px;word-break: break-all;"></div>
				<!-- 发表文章的 -->
				<!-- <div class="" ng-if="ct.type!=1">
					<p ng-if="ct.recomment!=''" class="sq-recomment">{{ct.recomment}}</p>
					<div class="media" style="margin: 5px 0px 10px 0px;padding: 5px;background: #f3f3f5;">
						<div class="media-left">
					      <img ng-cloak class="media-object" ng-src="{{ct.picUrl}}@320h_320w_1e_1c" alt="" style="width: 50px;height: 50px;">
					  	</div>
					  	<div class="media-body" style="color: #777;font-size: 14px;vertical-align: middle;line-height: 22px;">
						 	{{ct.title}}
						 </div>
					</div>
				</div> -->
			</div>
			<!-- 留言图片 -->
			<div class="sq-listImg" ng-if="ct.picUrls.length!=0">
				<a href="" ng-repeat="pic in ct.picUrls track by $index" sq-show-img ng-click="showImgsWx()">
					<img ng-src="{{pic?pic+'@320h_320w_1e_1c':''}}"/>
				</a>
			</div>
			<div class="sq-tool">
				<span data-time="{{ct.createTime}}">{{ct.createTime | chatDate}}</span>
				<!-- <a  class="sq-blue" ng-if="(pageUi.myIdentity==0&&ct.type!=0&&ct.type!=2&&ct.type!=null)||(ct.uId==pageUi.uid&&ct.uId!=null)" sq-deleted ng-click="deleted()">删除</a> -->
				<span ng-if="uiObj.myuid==ct.userId">
					<a ng-click="delete_moments(ct,$index)">删除</a>
				</span>
				<span ng-switch="ct.status" ng-if="pageUi.myIdentity=='1'">
					<a ng-click="update_moments(ct,$index)"  ng-switch-when="0">通过</a>
					<a ng-click="update_moments(ct,$index)" ng-switch-when="1">屏蔽</a>
					<a ng-click="update_moments(ct,$index)" ng-switch-when="2">通过</a>
				</span>
				<a  topopt  class="sq-blue {{ct.topId!=null&&ct.topId!='0'?'cancelTop':'putTop'}}" ng-if="pageUi.myIdentity=='1'">{{ct.topId!=null&&ct.topId!='0'?'取消':''}}置顶</a>
				
				<div class="sq-commentlist" ng-if="ct.comment_list||ct.praise_list">
					<div class="sq-praise" ng-class="{'no-border':ct.comment_list==null}" ng-if="ct.praise_list">
						<i class="sq-blue iconfont" style="font-weight: 700;font-size: 16px;">&#xe60b;</i>
						<!-- <i class="sq-blue" ng-repeat="ctp in ct.praise_list | limitTo:10 " >
							{{ctp.nickname}}{{!$last?',':''}}
							<span ng-if="ct.praise_list.length>10 && $last">
								...等{{ct.praise_list.length}}人点赞
							</span>
							
						</i> -->
						<!-- | limitTo:10 -->
						<img style="display:inline-block;margin-right:10px;" ng-repeat="ctp in ct.praise_list" src="{{ctp.headimgurl}}" width=30 height=30 alt="">
						<span ng-if="ct.praise_list.length>10">
								...等{{ct.praise_list.length}}人点赞
						</span>
					</div>
					<div class="comment_box">
						<i class="sq-blue iconfont" style="font-weight: 700;font-size: 16px;">&#xe60f;</i>
						<div class="comment_list" ng-repeat="cml in ct.comment_list" sq-reply ng-click="showOrdel()">
							<img ng-if="cml.isAdmin=='1'" ng-src="{{uiObj.adminHeadImg==null?uiObj.defaultHeadImg:uiObj.adminHeadImg+''}}" alt="">
							<img ng-if="cml.isAdmin!='1'" ng-src="{{cml.headimgurl}}" alt="">
							<p style="margin:0;" class="sq-blue">
							{{cml.isAdmin=='1'?uiObj.adminNickName:(cml.nickname==null?'匿名':cml.nickname)}}
							<span style="float:right;margin-left:10px;" ng-switch="cml.status" ng-if="pageUi.myIdentity=='1'">
								<a ng-click="cml.iscomment=1;update_moments(cml,$index);$event.stopPropagation();"  ng-switch-when="0">通过</a>
								<a ng-click="cml.iscomment=1;update_moments(cml,$index);$event.stopPropagation();" ng-switch-when="1">屏蔽</a>
								<a ng-click="cml.iscomment=1;update_moments(cml,$index);$event.stopPropagation();" ng-switch-when="2">通过</a>
							</span>
							<span style="float:right;color:#999">{{cml.createTime | chatDate}}</span>
							
							</p>
							<div>
								<span ng-if="cml.replyName">回复&nbsp;<i class="sq-blue">{{cml.replyName}}</i>:</span>
								<span class="contentMain" style="display:inline;" ng-bind-html="cml.comment | to_trusted"></span>
							</div>
							
						</div>
					</div>
					
					<!--<a href="" class="getcomment sq-blue" ng-class="{'hide':ct.commentCount<=5||ct.commentCount==null}">查看更多评论></a>-->
				</div>
				<div sqchat  class="sq-chat {{ct.isOpenTool}} {{sqChat.isshow}}"></div>
			</div>
		</li>
	<div  class="sq-dropmore">
		{{pageUi.text}}
	</div>	
</ul>
</div>

